﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace Clrizr.Web.App_Start.Configuration
{
    public class CdnBundleVersionConfig : ConfigurationSection
    {
        public static CdnBundleVersionConfig GetConfig()
        {
            return ConfigurationManager.GetSection("cdnBundleVersionConfig") as CdnBundleVersionConfig;
        }

        [ConfigurationProperty("jQuery", IsRequired = true, DefaultValue = "1.8.2")]
        public string jQuery
        {
            get
            {
                return this["jQuery"] as string;
            }
        }

        [ConfigurationProperty("jQueryUnobtrusive", IsRequired = true, DefaultValue = "3.0")]
        public string jQueryUnobtrusive
        {
            get
            {
                return this["jQueryUnobtrusive"] as string;
            }
        }

        [ConfigurationProperty("jQueryValidate", IsRequired = true, DefaultValue = "1.10.0")]
        public string jQueryValidate
        {
            get
            {
                return this["jQueryValidate"] as string;
            }
        }

        [ConfigurationProperty("jQueryValidateUnobtrusive", IsRequired = true, DefaultValue = "3.0")]
        public string jQueryValidateUnobtrusive
        {
            get
            {
                return this["jQueryValidateUnobtrusive"] as string;
            }
        }

        [ConfigurationProperty("jQueryUi", IsRequired = true, DefaultValue = "1.9.0")]
        public string jQueryUi
        {
            get
            {
                return this["jQueryUi"] as string;
            }
        }

        [ConfigurationProperty("jQueryUiCss", IsRequired = true, DefaultValue = "1.9.1")]
        public string jQueryUiCss
        {
            get
            {
                return this["jQueryUiCss"] as string;
            }
        }

        [ConfigurationProperty("Modernizr", IsRequired = true, DefaultValue = "2.0.6")]
        public string Modernizr
        {
            get
            {
                return this["Modernizr"] as string;
            }
        }

        [ConfigurationProperty("Knockout", IsRequired = true, DefaultValue = "2.1.0")]
        public string Knockout
        {
            get
            {
                return this["Knockout"] as string;
            }
        }
    }
}